﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extras-shiro">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert title here</title>
<link type="text/css" rel="stylesheet" th:href="@{/css/style.css}">
<script type="text/javascript" th:src="@{js/jquery-1.8.3.min.js}"></script>
</head>
<body>
	<div class="main">
		<div class="optitle clearfix">
			<div class="title">用户管理&gt;&gt;</div>
		</div>
		<form th:action="@{/user/delete}" method="post">
			<div class="content">
				<table class="box">
					<p th:text="${message}" style="color: red"></p>
					<input  type="hidden" id="userId" name="userId" th:value="${user.userId}"/>
					<tr>
						<td class="field">用户编号：</td>
						<td th:text="${user.userId}"></td>
						
					</tr>
					<tr>
						<td class="field">用户名：</td>
						<td th:text="${user.name}"></td>
					</tr>
					<tr>
						<td class="field">用户账号：</td>
						<td th:text="${user.loginname}"></td>
					</tr>

					<tr>
						<td class="field">用户性别：</td>
						<td th:text="${user.gender}==1?'男':'女'"></td>
					</tr>
					<tr>
						<td class="field">出生日期：</td>
						<td th:text="${#dates.format(user.birthdate,'yyyy-MM-dd')}">
						</td>
					</tr>
					
					<tr>
						<td class="field">用户电话：</td>
						<td th:text="${user.phone}">
						</td>

					</tr>
					<tr>
						<td class="field">用户地址：</td>
						<td th:text="${user.address}">
						</td>
					</tr>
					<tr>
						<td class="field">用户权限：</td>

						<td th:text="${user.userType}==1?'管理员' : (user.userType==2?'普通员工' :'经理')"></td>
					</tr>
				</table>
			</div>
			<div class="buttons">
				<input type="submit" id="del" value="删除" class="input-button"  /> 
				<input type="button"  id="backButton" onclick="history.back(-1)" value="返回" class="input-button" />
			</div>
		</form>
	</div>
	
</body>
</html>
